<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% 
	String path = request.getContextPath(); //解決跳轉后樣式丟失的問題
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 	
%>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=path%>/background/style/resource/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="<%=path%>/background/style/resource/Css/bootstrap-responsive.css" />
     <link href="<%=path%>/background/style/css/dpl.css" rel="stylesheet">
  	<link href="<%=path%>/background/style/css/bui.css" rel="stylesheet">
   	<link rel="stylesheet" href="<%=path%>/background/style/css/bootstrap-datetimepicker.css" />
    <link rel="stylesheet" type="text/css" href="<%=path%>/background/style/resource/Css/style.css" />
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/bootstrap.js"></script>
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/ckform.js"></script>
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/common.js"></script>
    <script type="text/javascript" src="<%=path%>/background/style/js/addUser.js"></script>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
       span{
        	color:red;
        }
    </style>
</head>
<form action="<%=path%>/user/addUser" id="addForm" method="post">
	<input type="hidden" name="isDelete" value="1"/>
	<!-- 用户设置为0 -->
	 <input type="hidden" name="hasStore" value="0"/>
	 <input type="hidden" name="pass" value="1234"/>
	<table class="table table-bordered table-hover definewidth m10">
	    <tr>
	        <td width="10%" class="tableleft">用户名</td>
	        <td><input type="text" name="name" id="uname"/><span id="name_msg"></span></td>
	    </tr>  
	    <tr>
	        <td class="tableleft">密码</td>
	        <td><input type="text" name="pass" id="upass"/><span id="pass_msg"></span></td>
	    </tr> 
	    <tr>
	        <td class="tableleft">性别</td>
	        <td>
	            <input type="radio" name="sex" value="男" checked/> 男
	            <input type="radio" name="sex" value="女"/> 女
	        </td>
	    </tr>
		<tr>
	        <td class="tableleft">生日</td>
	        
	        <td>
	       		<!--  <div class="input-append date form_datetime"> -->
			      <input  type="text"  class="calendar" id="birth" style="width:144px;" name="birthday" >
			     <!--  <span class="add-on" style="height:14px;"><i class="icon-calendar"></i></span>
			      --><span id="birth_msg"></span>
    	 		<!-- </div>  -->
	        </td>
	    </tr> 
		 <tr>
	        <td class="tableleft">电话号码</td>
	        <td><input type="text" id="unumber" name="number"><span id="number_msg"></span></td>
	    </tr> 
		 <tr>
	        <td class="tableleft">星级</td>
	        <td><input type="text" id="ulevel" name="level"><span id="level_msg"></span></td>
	    </tr>
		
	  <!--<tr>
	        <td class="tableleft">是否为商家</td>
	        <td>
	            <input type="radio" name="hasStore" value="1" checked/> 是
	            <input type="radio" name="hasStore" value="0"/> 否
	        </td>
	    </tr> -->
	    <tr>
	        <td class="tableleft"></td>
	        <td>
	            <input type="submit" class="btn btn-primary" onclick="" value="添加"/>&nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
	        </td>
	    </tr>
	</table>
 </form>
</body>
 <script src="<%=path%>/background/style/js/kissy-min.js"></script>
  <script src="<%=path%>/background/style/js/adapter.js"></script>
  <script type="text/javascript">
 
  KISSY.use('bui/calendar',function(S,Calendar){
    var datepicker = new Calendar.DatePicker({
        trigger:'.calendar',
        autoRender : true
      });
  });
  </script>
	<%-- bootstrap日历-->
	
	<script src="<%=path%>/background/style/js/bootstrap-datetimepicker.js" type="text/javascript"></script>
 	<script src="<%=path%>/background/style/js/bootstrap-datetimepicker.zh-CN.js" type="text/javascript"></script>			
 	<script type="text/javascript">
 		$(function(){
 			 $(".input-append").datetimepicker({
			      format: "yyyy-mm-dd",
			      autoclose: true,
			      todayBtn: true,
			      language:'zh-CN',
			      pickerPosition:"bottom-left"
	    	});
 			$('#backid').click(function(){
				window.location.href="userManager.jsp";
		 });
 		})
 	</script> --%>
</html>
 
<script>
  
</script>